#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QDebug>
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
//    ui->button->setText("变了");
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_button_1_clicked()
{
    ui->stackedWidget->setCurrentIndex(0);
    qDebug() << "已到切换页面";
}
